package com.ccloud.api.motorfactory.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ccloud.api.motorfactory.domain.MWarehouseRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 出入库台账记录表 服务类
 * </p>
 *
 * @author chentl
 * @since 2022-04-09
 */
public interface IMWarehouseRecordService extends IService<MWarehouseRecord> {

    /*
     * @Author chentl
     * @Description 保存并同步库存总量
     * @Date 11:31 2022/4/10
     * @Param [warehouseRecord]
     * @Return void
     **/
    void saveAndSyncWarehouseSum(MWarehouseRecord warehouseRecord);

    /*
     * @Author chentl
     * @Description 列表查询
     * @Date 11:53 2022/4/10
     * @Param [page, warehouseRecord]
     * @Return com.baomidou.mybatisplus.core.metadata.IPage<com.ccloud.api.motorfactory.domain.MWarehouseRecord>
     **/
    IPage<MWarehouseRecord> selectPage(Page<MWarehouseRecord> page, MWarehouseRecord warehouseRecord);
}
